package com.bwie.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bwie.pojo.User;
import com.bwie.utils.R;
import com.bwie.vo.LoginInfoVo;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

/**
 * @Author GaoYiJie
 * @Description
 * @Create 2025/4/17 9:43
 * @Version 1.0
 */
@Service
public class AuthServiceImpl implements AuthService {

    @Resource
    StringRedisTemplate stringRedisTemplate;



    @Override
    public String applyToken() {
        //获取国家局token
        String nationTokenKey = "nation_token";
        String token = stringRedisTemplate.opsForValue().get(nationTokenKey);
        return token;
    }
}
